﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CFProxy.Networking;

/*
 * Christiaan Rakowski
 * CFProxy - Content Filtering Proxy
 */

namespace CFProxy
{
	class Program
	{
		static void Main(string[] args)
		{
			try
			{
				Settings.ReadSettings("Config.xml");
				ProxyServer listen = new ProxyServer();
				listen.Start();
				
				listen.Stop();
				Console.WriteLine("Server broke free and is running rampage!");
			}
			catch (Exception e)
			{
				Console.WriteLine("An Error Occured!\n" +e.Message + "\nTerminating Proces...");
			}
		}
	}
}
